<% content_for('body') do %>

	<% split_view :workspace, :direction=>:horizontal do %>
		<% view :sidebar, :outlet=>true, :max_thickness=>400 do %>
			<%= source_list_view :outlet =>true, :group=>:active, 
			:delegate => 'Istageweb.productionsCollectionController',
			:content_value_key=>:productionName,
			:bind => {
				:content => 'Istageweb.productionsCollectionController.arrangedObjects',
				:selection => 'Istageweb.productionsCollectionController.selection'
			}%>
		<%end%>
	
		<%= split_divider_view :outlet=>true, :width=>5 %>
	
		<% view :production_detail_view, :class=>'detailpane', :outlet=>true do %>
			<label>Production Name</label>
			<%= text_field_view :outlet=>true, :hint=>"Production Name",
			:bind => {
				:value=>'Istageweb.productionDetailController.productionName'
			}%>
		<%= tab_view :production_lists, :lazy_tabs =>true, :segments =>[
			[:castlist,'Cast'],
			[:crewlist,'Crew'],
			[:propslists,'Props']
			]%>
		<%end%>
	<%end%>
	
	<% view :footer do%>
		<%= button_view :outlet=>true, :label=>'+', :action=>'Istageweb.productionsCollectionController.addProduction'%>
	<%end%>
<%end%>

